package com.fuzongle.tankboot.controller;

import com.fuzongle.tankboot.entity.Test;
import com.fuzongle.tankboot.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: fuzongle
 * @Date: 2020/6/8 11:17
 * @Description:
 */
@RestController
public class TestController {


    @Autowired
    private TestService testService;

    @RequestMapping("")
    public List<Test> index(){
        return testService.index();
    }
}